//
// @Auther: by wujehy 
// @Email:wujehy@qq.com
// @Data:20-3-14
// @Time:下午4:26
//

#include "Internal_Student.h"

void Internal_Student::setName(std::string name)
{
    this->m_name = name;
}

void Internal_Student::setId(int id)
{
    m_id = id;
}

void Internal_Student::setName2(std::string &name)
{
    // 引用传递 中不消耗内存,可以减少一次拷贝开销
    m_name = name;
}

Internal_Student::Internal_Student():Student("Internal_Student")
{
    std::cout<<"inti Internal_Studenttudent classroom="<<this->getClassroom()<<std::endl;
}

Internal_Student::~Internal_Student()
{
    std::cout<<"delete Internal_Studenttudent classroom="<<this->getClassroom()<<std::endl;
}
